import axios from "axios";

axios
  .get("https://m.maizuo.com/gateway?k=1282506", {
    headers: {
      "X-Host": "mall.film-ticket.city.list",
    },
  })
  .then((response) => {
    console.log("response", response);
  });

/**
 * get<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
 */

// axios.get<any, { name: string; age: number }>("adsfasdf").then((value) => {
//   // value.age
// });

/**
 * Promise<T>
 *    T - 表示 then 回调函数的参数类型
 */

// function hello<T>(): T {}

// const aaa = hello<string[]>();

export {};
